# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
# Contributor: Dobroslaw Kijowski [dobo] <dobo90_at_gmail.com>

pkgname=python-intervaltree
_pyname=intervaltree
pkgver=3.1.0
pkgrel=6
pkgdesc='Library providing a mutable, self-balancing interval tree for Python'
url="https://github.com/chaimleib/intervaltree"
arch=('any')
license=('Apache')
depends=('python-sortedcontainers')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/chaimleib/${_pyname}/archive/${pkgver}.tar.gz")
sha512sums=('96dd7710bb5b02470cb7d1b479d905d5e4a18abb9aef055fa55de6b7c25dcad46260f76e5d042bec599b02de2045d8ba03ff1900fff9562227dff5a76b45a070')
b2sums=('c11a93d3dfcf9f58ccf18e1a2a219daa5082abc3187f0c65fb309df221ec61495a31923819a92c03ff251a2f00b0588ab00aaaf70417a3b1a785c18a7bb3a702')

build() {
  cd "${_pyname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_pyname}-${pkgver}"
  python setup.py install -O1 --root="${pkgdir}" --skip-build
}

# vim: ts=2 sw=2 et:
